import React from 'react';
import './App.scss';
// antd-design移动端的UI组件使用，直接引入组件即可，antd-mobile 会自动为你加载 css 样式文件：无需要在入口文件引入样式
import { Button } from 'antd-mobile'
// 路由匹配到的组件Rules
import Rules from './router/Index'
// 在根组件引入底部Tabbar组件
import TabBarCom from './components/TabBarCom';
import { useState } from 'react'
import { useLocation } from 'react-router-dom'
function App() {
  const loc = useLocation()
  console.log('loc', loc);

  return (
    <div className="App">
      <Rules></Rules>
      {/* <TabBarCom ></TabBarCom> */}
      {loc.pathname.includes('/home')?<TabBarCom></TabBarCom>:<></> }
    </div >
  );
}

export default App;
